package org.goat.caprabank.shared.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Id;
import javax.persistence.Transient;

import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Unindexed;

@Entity
public class User implements Serializable {

	@Id
	public long accountNum;

	public String username;

	@Unindexed
	public byte[] passwordHash;

	@Unindexed
	public String firstName;

	@Unindexed
	public String lastName;

	@Unindexed
	public String email;

	@Transient
	public long balance;

	@Transient
	public List<BankTransaction> transactions;

}
